#ifndef __SUBCTRL_H
#define __SUBCTRL_H

#include "main.h"
#include <stdint.h>

sub_control_t *SubCtrl_Init(void);
void SubCtrl_SetOuput(switch_state_t state);
void SubCtrl_SetPower(int power);
void SubCtrl_SetAddress(uint8_t *ip);
void SubCtrl_SetMaxForwardPower(int power);
void SubCtrl_SetForwardPoint(uint8_t index, int power);
void SubCtrl_SetForwardCalibration(float a, float b, float c, float d);
void SubCtrl_GetForwardCalibration(void);
void SubCtrl_StartForwardCalibration(void);
void SubCtrl_ResetForwardCalibration(void);
void SubCtrl_SaveParams(void);
void SubCtrl_LoadParams(void);
void SubCtrl_Run(void);
uint8_t Subctrl_CheckAddr(uint8_t ip);

#endif /* __SUBCTRL_H */